/**
 * Created by wumu on 5/30/18.
 */
import Vue from 'vue';
import Vuex from 'vuex';

import device from './modules/device'
import user from './modules/user'

Vue.use(Vuex);

const store = new Vuex.Store({
    state:{
        currentPath:'/login',
    },
    mutations:{
        SET_CURRENT_PATH:(state,path)=>{
            state.currentPath = path
        }
    },
    modules: {
        user,
        device
    },
})

export default store
